<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>最简单的布局</title>

<script type="text/javascript" src="./scripts/jquery-1.9.0.js"></script>
<script type="text/javascript"	src="./scripts/jquery-ui/js/jquery-ui-1.10.0.custom.js"></script>
<link rel="stylesheet" type="text/css"	href="./scripts/jquery-ui/css/ui-lightness/jquery-ui-1.10.0.custom.css"/>


<style type="text/css">
.container {
	width: 60%;
	height: 200px;
	/*  margin: 10px auto; */
	padding: 5px;
	border: 1px solid #777;
	background-color: #fbca93;
	text-align: center;
	position: relative;
	left: 20%;
	margin: 20px;
	padding: 20px;
}

.elem_div {
	width: 100px;
	height: 100px;
	text-align: center;
	margin: 0px;
	padding: 0px;
}

.normal {
	background-color: #bcd5e6;
}

.relative1 {
	position: relative;
	left: 30px;
	top: 20px;
	background-color: red;
}

.absolute1 {
	position: absolute;;
	left: 30px;
	top: 20px;
	background-color: red;
}
.float1 {
	float:right;
	background-color: red;
}
</style>
<script type="text/javascript">
	
</script>
</head>
<body>
	<div class="container">
		<h2>相对定位</h2>
		<div class=" elem_div normal">normal</div>
		<div class=" elem_div relative1">
			<code>relative; left: 30px; top: 20px;</code>
		</div>
	</div>
	<div class="container">
		<h2>绝对定位</h2>
		<div class=" elem_div normal">normal</div>
		<div class=" elem_div absolute1">
			<code>absolute;; left: 30px; top: 20px;</code>
		</div>
	</div>
	<div class="container">
		<h2>浮动</h2>
		<div class=" elem_div normal">normal</div>
		<div class=" elem_div float1">
			<code>absolute;; left: 30px; top: 20px;</code>
		</div>
		
		
	</div>
	<div class="container">
		<img alt="甲壳虫乐队" src="./images/ct_beatles.jpg" style="float: left;" height="150px" width="150px" align="middle">
		阿迪发发发发发沙发发生法法师法法师 爱的发发发发沙发沙发沙发沙发发送到
		<p>adfasdfafafasfasfadfafasdfasfasdfasfasfasdfasfasdfasfasd</p>
	</div>
	
</body>

</html>